<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
    //手写圣杯模式
    function inherit(target,origin){
      function F() {};
      F.prototype = origin.prototype;
      var f=new F();
      target.prototype =f;
      target.prototype.constructor=target;
    }    
    </script>
</body>
</html>